package chai.ning.overload;

import java.io.PrintStream;

public class Tiger
{
  public void add(int a, int b)
  {
    System.out.println("add(int,int)");
    System.out.println(a + " + " + b + " = " + (a + b));
  }

  public void add(int a, int b, int c) {
    System.out.println("add(int,int,int)");
    System.out.println(a + " + " + b + " + " + c + " = " + (a + b));
  }

  public void add(long a, int b) {
    System.out.println("add(long,int)");
    System.out.println(a + " + " + b + " = " + (a + b));
  }

  public void add(int b, long a) {
    System.out.println("add(int,long)");
    System.out.println(a + " + " + b + " = " + (a + b));
  }

  public void add(double a, double b) {
    System.out.println("add(double,double)");
    System.out.println(a + " + " + b + " = " + (a + b));
  }

  public static void main(String[] args)
  {
    Tiger t = new Tiger();

    t.add(100, 200);

    t.add(0L, 0);

    t.add(0, 0L);
  }
}